package com.itbupt.types.design.framework.tree;

/**
 * @Author dingchang
 * @Date 2025/1/27 23:12
 * @Description: 策略映射器
 * T: 入参
 * D: 上下文
 * R: 返参
 */
public interface StrategyMapper <T, D, R> {

    /**
     * 获取待执行策略
     * @param requestParameter 入参
     * @param dynamicContext   上下文
     * @return 返参
     * @throws Exception 异常
     */
    StrategyHandler<T, D, R> get(T requestParameter, D dynamicContext) throws Exception;


}
